// 系统管理

import Layout from '@/layout'

const nestedRouter = {
  path: '/systemManage',
  component: Layout,
  redirect: '/system_management/menu1/menu1-1',
  name: 'nested2',
  meta: {
    title: 'nested2',
    icon: 'international'
  },
  children: [{
    // 软件权限创建
    path: 'authorityCreate',
    component: () =>
                import('@/views/systemManage/authorityCreate'),
    name: 'authorityCreate',
    meta: {
      title: 'authorityCreate'
    }
  },
  {
    path: 'menu2',
    component: () =>
                import('@/views/systemManage/menu2'),
    name: 'configure1',
    meta: {
      title: 'configure1'
    }
  },
  {
    path: 'menu3',
    component: () =>
                import('@/views/systemManage/menu3'),
    name: 'configure2',
    meta: {
      title: 'configure2'
    }
  },
  {
    // app上传
    path: 'AppUpload',
    component: () =>
      import('@/views/systemManage/AppUpload'),
    name: 'AppUpload',
    meta: {
      title: 'AppUpload'
    }
  },
  {
    // 修改密码
    path: 'updatePassword',
    component: () =>
                import('@/views/systemManage/updatePassword'),
    name: 'updatePassword',
    meta: {
      title: 'updatePassword'
    }
  },
  {
    path: 'sysSetting',
    component: () =>
                import('@/views/systemManage/partyGroup'),
    name: 'sysSetting',
    meta: {
      title: 'sysSetting'
    }
  }, {
    path: 'partyGroup',
    component: () =>
                import('@/views/systemManage/partyGroup/partyGroupList'),
    name: 'partyGroupRecharge',
    meta: {
      title: 'partyGroupRecharge'
    }
  }, {
    path: 'userActionList',
    component: () =>
                import('@/views/systemManage/es/userActionList'),
    name: 'userActionList',
    meta: {
      title: 'userActionList'
    }
  },
  {
    path: 'sysConfig',
    component: () =>
                import('@/views/systemManage/partyGroupConfig/partyGroupConfigList'),
    name: 'sysConfig',
    meta: {
      title: 'sysConfig'
    }
  },
  {
    path: 'partyGroupInvoice',
    component: () =>
                import('@/views/systemManage/partyGroupInvoice'),
    name: 'partyGroupInvoice',
    meta: {
      title: 'partyGroupInvoice'
    }
  },
  {
    path: 'paidRecord',
    component: () =>
                import('@/views/systemManage/paidRecord'),
    name: 'paidRecord',
    meta: {
      title: 'paidRecord'
    }
  },
  {
    path: 'site',
    component: () =>
                import('@/views/systemManage/site/index'),
    name: 'site',
    meta: {
      title: 'site'
    },
    redirect: '/system_management/site/site-banner',
    children: [{
      path: 'site-banner',
      component: () =>
                        import('@/views/systemManage/site/banner'),
      name: 'site-banner',
      meta: {
        title: 'site-banner'
      }
    },
    {
      path: 'site-news',
      component: () =>
                        import('@/views/systemManage/site/news'),
      name: 'site-news',
      meta: {
        title: 'site-news'
      }
    },
    {
      path: 'site-site',
      component: () =>
                        import('@/views/systemManage/site/site'),
      name: 'site-site',
      meta: {
        title: 'site-site'
      }
    },
    {
      path: 'site-deploy',
      component: () =>
                        import('@/views/systemManage/site/siteDeploy'),
      name: 'site-deploy',
      meta: {
        title: 'site-deploy'
      }
    },
    {
      path: 'site-preview',
      component: () =>
                        import('@/views/systemManage/site/preview'),
      name: 'site-preview',
      meta: {
        title: 'site-preview'
      }
    },
    {
      path: 'site-partner',
      component: () =>
                        import('@/views/systemManage/site/partner'),
      name: 'site-partner',
      meta: {
        title: 'site-partner'
      }
    }
    ]
  },
  {
    // 消息
    path: 'news',
    component: () =>
                import('@/views/systemManage/news/index'),
    name: 'news',
    meta: {
      title: 'news'
    },
    redirect: '/system_management/news/noteManage/noteManageList',
    children: [{
      // 应用通知管理
      path: 'noteManage',
      component: () =>
                        import('@/views/systemManage/news/noteManage/noteManageList'),
      name: 'noteManage',
      meta: {
        title: 'noteManage'
      }
    },
    {
      // 短信发送管理
      path: 'SMSManage',
      component: () =>
                        import('@/views/systemManage/news/SMSManage/SMSManageList'),
      name: 'SMSManage',
      meta: {
        title: 'SMSManage'
      }
    },
    {
      // 消息推送记录
      path: 'pushRecords',
      component: () =>
                        import('@/views/systemManage/news/pushRecords/pushRecordsList'),
      name: 'pushRecords',
      meta: {
        title: 'pushRecords'
      }
    },
    {
      // 短信验证码
      path: 'PINManage',
      component: () =>
                        import('@/views/systemManage/news/PINManage/PINManageList'),
      name: 'PINManage',
      meta: {
        title: 'PINManage'
      }
    },
    {
      // 司机催款记录
      path: 'paymentRecords',
      component: () =>
                        import('@/views/systemManage/news/paymentRecords/paymentRecordsList'),
      name: 'paymentRecords',
      meta: {
        title: 'paymentRecords'
      }
    }
    ]
  },
  {
    path: 'partyGroupManage',
    component: () =>
                import('@/views/systemManage/partyGroupManage'),
    name: 'partyGroupManage',
    meta: {
      title: 'partyGroupManage' // 机构管理
    },
    children: [{

    }]
  }
  ]
}

export default nestedRouter
